package com.youbug.system.service;

import com.youbug.common.vo.CommonTreeVo;
import com.youbug.system.entity.Org;
import com.youbug.system.entity.User;
import com.youbug.system.vo.StatisticsVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

/**
 * <p>
 * 通用服务类
 * </p>
 *
 * @author youbug
 * @since 2023-01-07
 */
public interface ICommonService{

    List<CommonTreeVo> getOrgTree();

    String saveFile(MultipartFile file, String type);

    StatisticsVo getStatistics();

    File saveLocalFile(String type, String newFileName, MultipartFile file);

    List<CommonTreeVo> transForTreeSelect(List<Org> orgs);

    List<User> getUsersByRoleCode(String roleCode);
}
